package day20170411.homework.teacher.entity;

public class TeacherEntity {
	
	
	/**
	 * 老师名字
	 */
	private String name;
	
	/**
	 * 老师身份证
	 */
	private String idCard;
	
	/**
	 * 老师年龄
	 */
	private int age;
	
	/**
	 * 老师工资
	 */
	private double salary;
	
	/**
	 * 老师性别
	 */
	private char sex;
	
	/**
	 * set/get
	 * @return
	 */
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}
	
	/**
	 * 重写toString
	 */
	@Override
	public String toString() {
		return "姓名：" + name + "\n身份证：" + idCard + ""
				+ "\n年龄：" + age + "\n月薪：" + salary + "\n性别：" + sex + "\n";
	}

}
